import http from '../utils/http'
let request = "/api/maruko-backend/sentences"

// post请求
export function getKnowledgeVo(params){
  return http.post(`${request}/knowledgeVo`,params)
}
export function findSentencesByPage(pageInput){
  return http.post(`${request}/page`, pageInput)
}
export function findSentencesByPageCondition(pageInput){
  return http.post(`${request}/page/condition`, pageInput)
}
export function findSentenceModifiedVo(videoNum, seq) {
  return http.get(`${request}/${videoNum}/${seq}`)
}
export function saveOrModifyEditedWord(videoNum, seq, editedWord) {
  return http.post(`${request}/${videoNum}/${seq}`, editedWord);
}
export function deleteEditedWord(videoNum, seq, editedWordContent) {
  return http.delete(`${request}/${videoNum}/${seq}/${editedWordContent}`);
}
export function saveOrModifyEditedGrammar(videoNum, seq, editedGrammar) {
  return http.post(`${request}/${videoNum}/${seq}/grammar`, editedGrammar);
}